package com.hzdl.hotel.service.impl;

import com.hzdl.hotel.bean.Menu;
import com.hzdl.hotel.mapper.MenuMapper;
import com.hzdl.hotel.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper mm;

    @Override
    public List<Menu> findAllMenu() {
        return mm.findAllMenu();
    }

    @Override
    public List<Menu> findByUserId(Integer id) {
        return mm.findByUserId(id);
    }
}
